/**
 * 
 */
package edu.ucr.cs.dblab.acestore.base.datatypes;

/**
 * @author jarod
 * @created Jan 11, 2011
 */
@SuppressWarnings("rawtypes")
public class SchemaDescriptor {

	private final ISerDeserializer[] fields;
	
	public SchemaDescriptor(ISerDeserializer[] fields){
		this.fields = fields;
	}
	
	public ISerDeserializer[] getFields(){
		return fields;
	}
	
	public int getSize(){
		int size = 0;
		for(ISerDeserializer serder : fields){
			size += serder.getTypeSize();
		}
		return size;
	}
}
